package com.myBlast.client.models;

import com.extjs.gxt.ui.client.data.BaseTreeModel;
import com.extjs.gxt.ui.client.data.ModelComparer;

/**
 * Model object for the Leaf Node
 * @author Parit Bansal
 */
public class LeafTaxonomyModel extends BaseTreeModel implements ModelComparer<LeafTaxonomyModel>{
	
	private static final long serialVersionUID = 1L;
	public LeafTaxonomyModel(){}
	public LeafTaxonomyModel(String name, String gid, String url)
	{
		set("name",name);
		set("gid",gid);
		set("url",url);
	}
	@Override
	public boolean equals(LeafTaxonomyModel m1, LeafTaxonomyModel m2) {
		if (m1.get("gid").equals(m2.get("gid"))) return true;
		else return false;
	}
}
